package com.txts.road.app.message.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;

/**
 * 消息会话视图对象
 *
 * @author baoyr
 * @since 2025-07-17 10:45
 */
@Getter
@Setter
@Schema( description = "消息会话视图对象")
public class MessageSessionVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "会话ID")
    private Long id;
    @Schema(description = "用户ID")
    private Long userId;
    @Schema(description = "联系人用户ID")
    private Long contactUserId;
    @Schema(description = "最后一条消息ID")
    private Long lastMessageId;
    @Schema(description = "最后消息时间")
    private LocalDateTime lastMessageTime;
    @Schema(description = "未读消息数")
    private Integer unreadCount;
    @Schema(description = "是否删除：0-否，1-是")
    private Integer isDeleted;

}
